/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classesMiolo;

import java.util.HashMap;

/**
 *
 * @author Lauciano
 */
public class MapasAtendPsiqUrgencia {
    private HashMap<String, Character> condicao;
    private HashMap<String, Character> destino;
    private HashMap<String, Character> transporte;
    private static MapasAtendPsiqUrgencia instance = null;

    private MapasAtendPsiqUrgencia() {
        initCondicao();
        initDestino();
        initTransporte();
    }    
    
    public static MapasAtendPsiqUrgencia getInstance(){
        if(instance == null) instance = new MapasAtendPsiqUrgencia();
        return instance;
    }

    public HashMap<String, Character> getCondicao() {
        return condicao;
    }
    
    public HashMap<String, Character> getDestino() {
        return destino;
    }
    
    public HashMap<String, Character> getTransporte(){
        return transporte;
    }
    
    private void initCondicao(){
        condicao = new HashMap<>();
        condicao.put("Aparentemente Bem", new Character('a'));
        condicao.put("Regular", new Character('b'));
        condicao.put("Grave", new Character('c'));
    }
    
    private void initDestino(){
        destino = new HashMap<>();
        destino.put("Obs. 72Hrs PA", new Character('a'));
        destino.put("Medicado", new Character('b'));
        destino.put("Tranf. Hosp. Clinico", new Character('c'));
        destino.put("Alta Médica", new Character('d'));
        destino.put("Evasão", new Character('e'));
        destino.put("Residência", new Character('f'));
        destino.put("Transf. p/Hosp. Psiq.", new Character('g'));
        destino.put("Termo", new Character('h'));
        destino.put("Óbito", new Character('i'));
    }
    
    private void initTransporte(){
        transporte = new HashMap<>();
        transporte.put("SAMU", new Character('a'));
        transporte.put("Próprio", new Character('b'));
        transporte.put("Ambulância", new Character('c'));
        transporte.put("Táxi", new Character('d'));
        transporte.put("Polícia", new Character('e'));
        transporte.put("Outros", new Character('f'));
    }
}
